package com.atguigu.gmall.oms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.oms.entity.OrderEntity;
import com.atguigu.gmall.oms.vo.OrderSubmitVO;
import com.atguigu.gmall.ums.entity.UserEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface GmallOmsApi {
    @PostMapping("oms/order/create/{userId}")
   ResponseVo saveOrder(@RequestBody OrderSubmitVO orderSubmitVO, @PathVariable String userId);

    @GetMapping("oms/order/token/{token}")
    ResponseVo<OrderEntity> getOrderByToken(@PathVariable String token);
}
